package com.k.kppcloud.modules.admin.controller;

import com.k.kppcloud.modules.admin.domain.UserDO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/admin/user")
public class UserController {
    private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(UserController.class);

    @GetMapping("/list")
    public List<UserDO> list() {
        List<UserDO> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            UserDO userDO = new UserDO();
            userDO.setId("id" + i);
            userDO.setName("admin" + i);
            list.add(userDO);
        }
        return list;
    }

}
